package com.smit.dvb;

import java.io.Serializable;

/**
 * 频点信息
 */
public class DVBFreqInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 频道 */
    public int channel;
    /** 频率kHz */
    public int frequency;
    /** 符号率 kbs */
    public int symbolRate;
    /** 调制方式
     * @see DVBTunerInfo#MODULATION_16QAM
     * @see DVBTunerInfo#MODULATION_32QAM
     * @see DVBTunerInfo#MODULATION_64QAM
     * @see DVBTunerInfo#MODULATION_128QAM
     * @see DVBTunerInfo#MODULATION_256QAM
     */
    public int modulation;
    /** 带宽
     * @see DVBTunerInfo#BAND_WIDTH_6
     * @see DVBTunerInfo#BAND_WIDTH_7
     * @see DVBTunerInfo#BAND_WIDTH_8
     */
    public int bandWidth;
    /** tuner类型
     * @see DVBTunerInfo#TUNER_TYPE_DTMB
     * @see DVBTunerInfo#TUNER_TYPE_DVBC
     * @see DVBTunerInfo#TUNER_TYPE_DVBT
     * @see DVBTunerInfo#TUNER_TYPE_DVBT2
     * @see DVBTunerInfo#TUNER_TYPE_DVBS
     * @see DVBTunerInfo#TUNER_TYPE_DVBS2
     */
    public int tunerType;

    /**
     * 构造函数
     * @param channel 频道
     * @param frequency 频率
     * @param symbolRate 符号率
     * @param modulation 调制方式
     * @param bandWidth 带宽
     * @param tunerType tuner类型
     */
    public DVBFreqInfo(int channel, int frequency, int symbolRate, int modulation, int bandWidth, int tunerType) {
        this.channel = channel;
        this.frequency = frequency;
        this.symbolRate = symbolRate;
        this.modulation = modulation;
        this.bandWidth = bandWidth;
        this.tunerType = tunerType;
    }

    @Override
    public String toString() {
        return "DVBFreqInfo [Channel=" + channel + ", Frequency=" + frequency + ", SymbolRate=" + symbolRate
                + ", Modulation=" + modulation + ", Bandwidth=" + bandWidth + "TunerType=" + tunerType + "]";
    }

}